﻿@using JStore.Web.Controllers.Users.ViewModels
@using SpeadFrm.Extensions
@{
    ViewBag.Title = "EditUser";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var info = (UserInfoModel)ViewData["UserModel"];
}
<link href="../../Scripts/jquery-validation-engine/css/template.css" rel="stylesheet"
    type="text/css" />
<link href="../../Scripts/jquery-validation-engine/css/validationEngine.jquery.css"
    rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-validation-engine/js/jquery.validationEngine.js"
    type="text/javascript"></script>
<script src="../../Scripts/jquery-validation-engine/js/languages/jquery.validationEngine-zh_CN.js"
    type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#form1").validationEngine();
    })
</script>
<div class="right_box_card">
    <ul>
        <li class="right_box_card1"><a href="#">个人资料</a></li>
    </ul>
</div>
@using (Html.BeginForm("EditUser", "Users", FormMethod.Post, new { id = "form1" }))
{

    <table class="enter_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr height="40">
        <td class="entry_tab_td1" width="15%">
            会员账号：
        </td>
        <td class="entry_tab_td2 red" colspan="3">
         <label style="color:red"> @info.UserName</label>  
        </td>
    </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                批发商：
            </td>
            <td class="entry_tab_td2">
                @info.JdUserName / @(info.JdSort == null ? "" : info.JdSort + "号市场")
            </td>
            <td class="entry_tab_td1">
                零售商：
            </td>
            <td class="entry_tab_td2">
                @info.TjUserName
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                消费类型：
            </td>
            <td class="entry_tab_td2">
                @info.CardClass.ToDescriptionName()
            </td>
            <td class="entry_tab_td1">
                消费种类：
            </td>
            <td class="entry_tab_td2">
                @info.CardTypeName
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                消费金额：
            </td>
            <td class="entry_tab_td2">
                @info.JoinMoney
            </td>
            <td class="entry_tab_td1">
                实际消费：
            </td>
            <td class="entry_tab_td2">
                @info.RealMoney
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                会员类型：
            </td>
            <td class="entry_tab_td2">
                @info.UserTypeName
            </td>
            <td class="entry_tab_td1">
                消费时间：
            </td>
            <td class="entry_tab_td2">
                @info.CreateDate
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                是否区代：
            </td>
            <td class="entry_tab_td2">
                @(info.IsArea ? "是" : "否")
            </td>
            <td class="entry_tab_td1">
                区代账号：
            </td>
            <td class="entry_tab_td2">
                @info.AreaUserName
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                真实姓名：
            </td>
            <td class="entry_tab_td2">
                <input type="text" id="Name" name="Name" class="tab_input validate[required]" value="@info.Name" />
            </td>
            <td class="entry_tab_td1">
                联系电话：
            </td>
            <td class="entry_tab_td2">
                <input type="text" id="Phone" name="Phone" class="tab_input validate[required]" value="@info.Phone" />
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                手机号码：
            </td>
            <td class="entry_tab_td2" colspan="3">
                <input type="text" id="Mobile" name="Mobile" class="tab_input validate[required]" value="@info.Mobile" />
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                联系地址：
            </td>
            <td class="entry_tab_td2" colspan="3">
                <input type="text" id="Address" name="Address" class="tab_input validate[required]" style="width:300px;" value="@info.Address" />
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
            </td>
            <td class="entry_tab_td2" colspan="3">
                <input type="submit" class="submit" value="立即修改" style="float: left;" />
            </td>
        </tr>
    </table>
    
}
